package com.Threecharacters.Poly_.Polyparameter.Case2;

public class Manager extends Employee {

    double bonus;

    public Manager(String name, double salary, double bonus) {
        super(name, salary);
        this.bonus = bonus;
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public double getAnnual() {
        return super.getSalary() + bonus;
    }

    public void manage() {
        System.out.println("I'm a manager");
    }


}
